package com.wzp.yyptproject.repository;


import com.wzp.yyptproject.entity.Doctor;
import com.wzp.yyptproject.entity.EkBing;
import com.wzp.yyptproject.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorRepository extends JpaRepository<Doctor,Integer> {
    Doctor findAndByDDid(Integer did);
    Doctor findAndByDDname(String ddname);
   List <Doctor> findAndByKKid(Integer kkid);
    Page<Doctor> findAll(Pageable pageable);

}
